package com.yyz.service;


import com.yyz.pojo.Contract;
import com.yyz.tools.Page;

import java.util.Map;

public interface ContractService {

    /**
     * findByPage TODO(查询数据+分页)
     *
     * @param map
     * @return
     */
    Page<Contract> findByPage(Map<String, Object> map);

    Integer countByQuery(Map<String, Object> map);

    Integer delete(Integer id);

    Integer add(Contract contract);

    Integer update(Contract contract);

    Contract queryById(Integer id);
}

